﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Amazon.Route53.DataContracts
{
    [DataContract(Namespace = Constants.Namespace)]
    public class ErrorResponse
    {
        [DataMember(Order=1)]
        public Error Error { get; set; }

        [DataMember(Order=1)]
        public String RequestId { get; set; }
    }

    [DataContract(Namespace = Constants.Namespace)]
    public class Error
    {
        [DataMember(Order=1)]
        public Amazon.Runtime.ErrorType Type { get; set; }
        [DataMember(Name = "Code",Order = 2)]
        public String ErrorCode { get; set; }

        [DataMember(Order = 3,EmitDefaultValue =false)]
        public String Message { get; set; }
    }
}
